package com.amigo.online.provider.user.model.entity;

import javax.persistence.Table;

import com.amigo.online.common.base.entity.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 群聊实体类
 *
 * @author kml
 */
@Table(name = "group_tbl")
@Alias(value = "group")
public class Group extends BaseEntity {

    private static final long serialVersionUID = 2346501321592877003L;

    /*群主ID*/
    private Long user_id;

    /*名称*/
    private String name;

    /*头像*/
    private String avatar;

    /*介绍*/
    private String introduction;

    private Integer country;

    private Integer province;

    private Integer city;

    private String address;

//	/**
//	 * 地址name
//	 */
//	private String addressName;

    private String longitude;

    private String latitude;

    private Integer category;

    private Integer status;

    /*审核：1为待审核，0为审核不通过，2为通过*/
    private Integer checked;

    private String checked_info;

    private Long checked_time;

    /*加群是否需要审核：0为不需要，1为需要*/
    private Integer examine;

    /*类型:1为普通群，2为VIP群，3为高级群*/
    private Integer type;

    private String keywords;

    /*解散*/
    private Integer disbanded;

    /*解散时间*/
    private Long disbanded_time;

    /*解散时间*/
    private Long updated_time;

    private Long created_user_id;

    /**
     * 是否隐身
     */
    private Integer invisible;

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getCountry() {
        return country;
    }

    public void setCountry(Integer country) {
        this.country = country;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    public String getChecked_info() {
        return checked_info;
    }

    public void setChecked_info(String checked_info) {
        this.checked_info = checked_info;
    }

    public Long getChecked_time() {
        return checked_time;
    }

    public void setChecked_time(Long checked_time) {
        this.checked_time = checked_time;
    }

    public Integer getExamine() {
        return examine;
    }

    public void setExamine(Integer examine) {
        this.examine = examine;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Integer getDisbanded() {
        return disbanded;
    }

    public void setDisbanded(Integer disbanded) {
        this.disbanded = disbanded;
    }

    public Long getDisbanded_time() {
        return disbanded_time;
    }

    public void setDisbanded_time(Long disbanded_time) {
        this.disbanded_time = disbanded_time;
    }

    public Long getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(Long updated_time) {
        this.updated_time = updated_time;
    }

    public Long getCreated_user_id() {
        return created_user_id;
    }

    public void setCreated_user_id(Long created_user_id) {
        this.created_user_id = created_user_id;
    }

//	public String getAddressName() {
//		return addressName;
//	}
//
//	public void setAddressName(String addressName) {
//		this.addressName = addressName;
//	}

    public Integer getInvisible() {
        return invisible;
    }

    public void setInvisible(Integer invisible) {
        this.invisible = invisible;
    }

    @Override
    public String toString() {
        return "Group{" +
                "user_id=" + user_id +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", introduction='" + introduction + '\'' +
                ", country=" + country +
                ", province=" + province +
                ", city=" + city +
                ", address='" + address + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", category=" + category +
                ", status=" + status +
                ", checked=" + checked +
                ", checked_info='" + checked_info + '\'' +
                ", checked_time=" + checked_time +
                ", examine=" + examine +
                ", type=" + type +
                ", keywords='" + keywords + '\'' +
                ", disbanded=" + disbanded +
                ", disbanded_time=" + disbanded_time +
                ", updated_time=" + updated_time +
                ", created_user_id=" + created_user_id +
                ", invisible=" + invisible +
                '}';
    }
}
